using System;
using Quartz;

namespace Webshop20.AntiCorruptionLayers.Quartz.Translators
{
    public class SimpleTriggerTranslator : ISimpleTriggerTranslator
    {
        public Trigger ConvertToTrigger(DateTime time)
        {
            Trigger trigger = new SimpleTrigger(
                                        Guid.NewGuid().ToString(),
                                        null,
                                        time,
                                        null,
                                        0,
                                        TimeSpan.Zero
                                    );
            return trigger;
        }

    }
}